<?php
$adminPrefix = '';
$viewParam = $assetData['Deal']['id'];
if(isset($this->params['admin']))
{
	$adminPrefix = '/admin';
	$viewParam = $assetData['Deal']['id'];
}
?>
<div align="center">
	<?php echo $asset->preview($assetData['DealAsset'], array('class'=>'', 'thumb'=>array('width'=>580,'height'=>580))); ?>
	<br/>
	<?php
	if(!isset($neighbors['prev']['DealAsset']))
	{
		$prevLink = '<div class="disabled">'.__("Prev").'</div>';
	} else {
		$prevLink = $html->link(__("Prev"),$adminPrefix.'/deals/deal_assets/view/'.$neighbors['prev']['DealAsset']['id']);
	}
	if(!isset($neighbors['next']['DealAsset']))
	{
		$nextLink = '<div class="disabled">'.__("Next").'</div>';
	}
	else
	{
		$nextLink = $html->link(__("Next"),$adminPrefix.'/deals/deal_assets/view/'.$neighbors['next']['DealAsset']['id']);
	}
	?>
	<?php echo $prevLink;?> | <?php echo $nextLink;?>
	<br/>
	<?php echo $time->timeAgoInWords($assetData['DealAsset']['created'],array('shortString'=>true));?> 
	<?php //echo $report->link("DealAsset",$assetData['DealAsset']['id'],array('title'=>"Report")) ?>
</div>